package com.rtx.wms.std.log.service.impl;

import org.springframework.stereotype.Component;

import com.rtx.edi.model.log.po.PlApiRequestLog;
import com.rtx.wms.std.log.bean.WmsLogBo;
import com.rtx.wms.std.log.service.AbsWmsLogService;
import com.rtx.wms.std.so.bean.ApiOrdersfinish;

@Component
public class StockoutConfirmLog extends AbsWmsLogService{

	@Override
	public void mappingLog(WmsLogBo logBo, PlApiRequestLog log) {
		super.mappingLog(logBo, log);
		
		ApiOrdersfinish finish = (ApiOrdersfinish) logBo.getOriginalData();
		
        log.setLogkey(finish.getExternorderkey());
        
        //接收公司名称
        log.setResponseCompanyName(finish.getStorerkey());
        //接收应用名称
        log.setResponseApplicationName(finish.getStorerkey());
        //接口名称
        log.setRequestInterfaceName("stockout.confirm");
	}
}
